package com.wulian.user.dto;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.wulian.user.entity.SysUserRole;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 *@Description:(用户实体包含政府人员)
 * @author  caifulin
 * @date  2020/4/21 18:24
 * @version 1.0
 */
@Data
@ApiModel("用户表")
@ToString
public class SysUserDto {

    @ApiModelProperty("主键id")
    private Integer userId;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("e-mail")
    private String email;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("状态0.启用1.停用")
    private Integer status;

    @ApiModelProperty("用户类型 0 机构人员 1 政府人员")
    private String userType;

    @ApiModelProperty("省-政府人员独特拥有")
    private Integer province;

    @ApiModelProperty("市-政府人员独特拥有")
    private Integer city;

    @ApiModelProperty("县-政府人员独特拥有")
    private Integer county;

    @ApiModelProperty("角色id")
    private Integer[] roleId;

    @ApiModelProperty("0-正常，1-删除")
    private Integer delFlag;

    @ApiModelProperty("角色name")
    private String roleName;

    @ApiModelProperty("省级名称")
    private String provinceName;

    @ApiModelProperty("市级名称")
    private String cityName;

    @ApiModelProperty("区级名称")
    private String countyName;

    @ApiModelProperty("用户角色")
    private List<SysUserRole> sysUserRole;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("机构Id")
    private Integer deptId;

    public SysUserDto(){
    }
}